package com.windfone.service.impl;

import java.util.List;

import com.windfone.dao.OrderDao;
import com.windfone.model.Order;
import com.windfone.model.ReceiveMsg;
import com.windfone.service.OrderService;

public class OrderServiceImpl implements OrderService {

	private OrderDao orderDao;
	public OrderDao getOrderDao() {
		return orderDao;
	}

	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}

	public int deleteOrder(int keyValue) {
		return 0;
	}

	public int getAllRecorderNumber() {
		return 0;
	}

	public int updateOrder(Order bean) {
		return 0;
	}

	public int insertOrder(Order bean) {
		return orderDao.insertOrder(bean);
	}

	public List<Order> getOrderById(int keyValue) {
		return null;
	}

	public List<Order> getAllOrder(int beginRecord) {
		return orderDao.getAllOrder(beginRecord);
	}

	public int insertReceiveMsg(ReceiveMsg bean) {
		return orderDao.insertReceiveMsg(bean);
	}

	public List<ReceiveMsg> getReceiveMsgByUserId(int userId) {
		return orderDao.getReceiveMsgByUserId(userId);
	}
	public List<ReceiveMsg> getReceiveMsgByUserId(int userId,int limit) {
		return orderDao.getReceiveMsgByUserId(userId,limit);
	}

	public ReceiveMsg getReceiveMsgByOrderId(int OrderId) {
		return orderDao.getReceiveMsgByOrderId(OrderId);
	}

	public List<Order> getOrderByUserId(int userId) {
		return orderDao.getOrderByUserId(userId);
	}

	public List<Order> getOrderByOrderSeq(String orderSeq) {
		return orderDao.getOrderByOrderSeq(orderSeq);
	}

	public ReceiveMsg getReceiveMsgByOrderId(String orderSeq) {
		return orderDao.getReceiveMsgByOrderId(orderSeq);
	}

	public List<Order> getOrderByCondition(String whereCondition) {
		return orderDao. getOrderByCondition(whereCondition);
	}

	public List<ReceiveMsg> getReceiveByCondition(String whereCondition) {
		return orderDao.getReceiveByCondition(whereCondition);
	}

	public int updateReceiveMsg(String orderSeq,int status) {
		return orderDao.updateReceiveMsg(orderSeq,status);
	}

	public int updateReceiveMsg(ReceiveMsg bean) {
		return orderDao.updateReceiveMsg(bean);
	}

	public List<ReceiveMsg> getReceiveMsgByUserIdAndCondition(int id,String whereStr) {
		return orderDao.getReceiveMsgByUserIdAndCondition(id,whereStr);
	}

	public int deleteOrderByOrderSeq(String orderSeq) {
		return orderDao.deleteOrderByOrderSeq(orderSeq);
	}

	public int delteReceiveMsg(String orderSeq) {
		return orderDao.delteReceiveMsg(orderSeq);
	}

	public int deleteOrderByOrderSeqMemberId(String orderSeq, int memberId) {
		return orderDao.deleteOrderByOrderSeqMemberId(orderSeq, memberId);
	}

	public int delteReceiveMsgByOrderSeqAndMemberId(String orderSeq,int memberId) {
		return orderDao.delteReceiveMsgByOrderSeqAndMemberId(orderSeq, memberId);
	}

	public int updateReceiveMsgByUser(ReceiveMsg updateReceiveMsg) {
		return orderDao.updateReceiveMsgByUser(updateReceiveMsg);
		
	}

}
